//
//  xsCropBaseImageView.m
//  digital_robot_demo
//
//  Created by xskj on 2024/9/5.
//

#import "xsCropBaseImageView.h"

@implementation xsCropBaseImageView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
//- (void)layoutSubviews {
//    [super layoutSubviews];
//    
//    // 获取当前视图的大小
//    CGSize currentSize = self.bounds.size;
//    
//    // 计算缩放比例
//    CGFloat scaleX = currentSize.width / self.previousBounds.size.width;
//    CGFloat scaleY = currentSize.height / self.previousBounds.size.height;
//    
//    // 遍历所有子视图并按比例调整大小和位置
//    for (UIView *subview in self.subviews) {
//        CGRect newFrame = subview.frame;
//        newFrame.origin.x *= scaleX;
//        newFrame.origin.y *= scaleY;
//        newFrame.size.width *= scaleX;
//        newFrame.size.height *= scaleY;
//        subview.frame = newFrame;
//    }
//    
//    // 更新之前的边界大小
//    self.previousBounds = currentSize;
//}

@end
